#ifndef INTERSECTRESULT_H
#define INTERSECTRESULT_H
#include "global_object.h"
#include "Vector3.cu"

class IntersectResult
{
public:
	inline __host__ __device__  IntersectResult(){
		hit = false;
		tVal = FLT_MAX;
		point = normal = tex_coord = Vector3(0.0f, 0.0f, 0.0f);
	}
	inline __host__ __device__  IntersectResult(bool h, float t, Vector3 p, Vector3 n, Vector3 tx){
		hit = h;
		tVal = t;
		point = p;
		normal = n;
		tex_coord = tx;
	}

	inline __host__ __device__  ~IntersectResult();

	bool hit;
	float tVal;
	Vector3 point;
	Vector3 normal;
	Vector3 tex_coord;

};

#endif